Skip to content

test(effect): adopt effect-rstest helpers - #192

Merged
ScriptedAlchemy merged 3 commits into
mainfrom
chore/adopt-effect-rstest
Sep 1, 2026
Merged

test(effect): adopt effect-rstest helpers#192
ScriptedAlchemy merged 3 commits into
mainfrom
chore/adopt-effect-rstest

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • add the effect-rstest@0.1.0 pkg.pr.new preview to both Effect-consuming packages
  • return the render-stream Effect directly from it.effect and scope event-runtime socket resources with it.live
  • document when to use Effect-aware rstest helpers and add patch changesets

Test plan

  • pnpm install --frozen-lockfile
  • pnpm exec rstest --config rstest.unit.config.ts packages/rsc-runtime/tests/agent-document.test.ts packages/agent-bundle/tests/event-ipc.test.ts
  • pnpm typecheck
  • pnpm lint

@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ca243cb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@agent-bundle/runtime Patch
agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T20:22:57.819763Z 359dfcc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 359dfccfac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/agent-bundle/package.json Outdated
"@modelcontextprotocol/server": "2.0.0",
"@types/react": "19.2.18",
"@types/ws": "8.18.1",
"effect-rstest": "https://pkg.pr.new/ScriptedAlchemy/effect-rstest@1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pin the preview dependency to an immutable SHA

The @1 suffix tracks the latest build of upstream PR #1, while pnpm-lock.yaml records the integrity of the tarball currently served there. If that PR publishes another preview, a clean pnpm install --frozen-lockfile can download different bytes and fail integrity verification, blocking CI and fresh checkouts; docs/preview-packages.md:32-38 likewise identifies commit-SHA URLs as the correct form for lockfiles. Pin the same immutable preview SHA in both package manifests and regenerate the lockfile.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 4265299: both manifests now pin the immutable e5f8d5f pkg.pr.new preview, the lockfile was regenerated, and the package-scoped Rstest 0.11.10 peer allowance lives in pnpm-workspace.yaml. Focused tests, typecheck, lint, and pnpm peers check pass.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased fix commit: d70a936 (supersedes pre-rebase 4265299). Both manifests remain pinned to immutable preview e5f8d5f; frozen install, focused tests, typecheck, lint, and peer checks pass on latest main.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest rebased fix commit: ca243cb, now on main through #196/#197. Immutable e5f8d5f pins are unchanged; frozen install, 12 focused tests, typecheck, lint, and peer checks pass.

@pkg-pr-new

pkg-pr-new Bot commented Sep 1, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@192
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/create-agent-bundle@192
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/runtime@192

commit: ca243cb

@ScriptedAlchemy
ScriptedAlchemy force-pushed the chore/adopt-effect-rstest branch from 4265299 to d70a936 Compare September 1, 2026 20:37
Use the rstest-native Effect runner for direct programs and scoped host resources while preserving Promise-boundary coverage.
Track the current pkg.pr.new tarball checksum so clean frozen installs accept the republished preview.
Use the immutable pkg.pr.new commit URL and scope the Rstest 0.11.10 peer allowance to effect-rstest.
@ScriptedAlchemy
ScriptedAlchemy force-pushed the chore/adopt-effect-rstest branch from d70a936 to ca243cb Compare September 1, 2026 20:49
@ScriptedAlchemy
ScriptedAlchemy merged commit 6b74fc6 into main Sep 1, 2026
10 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the chore/adopt-effect-rstest branch September 1, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant